package com.lq.ecoldchain.ui.mine.user.phonenew

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.lq.ecoldchain.R
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.view.BaseActivity
import com.lq.ecoldchain.databinding.ActivityPhoneNewBinding
import org.kodein.di.Kodein
import org.kodein.di.generic.instance

/*
*2019/1/5 0005  9:35
*function by lq
*/
@Route(path = BaseNavigator.newPhone)
class PhoneNewActivity : BaseActivity<ActivityPhoneNewBinding>() {
    @Autowired
    @JvmField
    var token: String? = ""
    override val kodein = Kodein.lazy {
        extend(parentKodein)
        import(phoneNewKodeinModule)
    }

    override val layoutId = R.layout.activity_phone_new
    override val viewDelegate: PhoneNewDelegate by instance()

    override fun initView() {
        titleText("修改手机号")
        binding.delegate = viewDelegate
        viewDelegate.viewModel.newToken = token ?: ""
    }

}